﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.Alipay
{
    public static class UtilDate
    {
        public static readonly string dtLong = "yyyyMMddHHmmss";

        public static string GetOrderNum()
        {
            DateTime date = DateTime.Now;
            return date.ToString(dtLong) + getThree();
        }

        /// <summary>
        /// 获取三位随机数
        /// </summary>
        /// <returns></returns>
        private static string getThree()
        {
            Random rad = new Random();
            return rad.Next(100, 1000) + "";
        }
    }
}
